package testGenerator.utilities;

import java.io.File;
import java.io.FileWriter;

/**
 *
 * @author William
 */
public class FileSaver
{

    public FileSaver(String testStr, File selectedFile)
    {
        try
        {
            FileWriter fileStream = new FileWriter(selectedFile);
            fileStream.write(testStr);
            fileStream.close();
        }
        catch (Exception error)
        {
            error.printStackTrace();
        }
    }
}
